package com.example.edu.Utils;

public class RegexPatterns {
    /**
     * 手机号正则
     */
    public static final String PHONE_REGEX = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$";
    /**
     * 邮箱正则
     */
    public static final String EMAIL_REGEX = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";
    /**
     * 密码正则。4~32位的字母、数字、下划线
     */
    public static final String PASSWORD_REGEX = "^\\w{4,32}$";
    /**
     * 验证码正则, 6位数字或字母
     */
    public static final String VERIFY_CODE_REGEX = "^[a-zA-Z\\d]{6}$";
    /**
     * 图片url正则
     */
    public static final String PICTURE_URL_REGEX = "http://[\\w.]+/(\\d+)\\.[a-zA-Z]+";
    /**
     * 文档切分正则：匹配换行符加数字加.
     */
    public static final String DOCUMENT_CUT_REGEX2 = "(?m)^\\d+\\.\\s.*$";
    /**
     * 文档切分正则：匹配windows双换行符
     */
    public static final String DOCUMENT_CUT_REGEX = "\\r\\n\\r\\n+";
    public static final int CHUNK_SIZE = 200;
}
